<template>
  <div class="menu-container">
    <div class="menu-header">
      <h1>聊天系统导航</h1>
      <p>选择要访问的页面</p>
    </div>
    
    <div class="menu-grid">
      <div class="menu-card" @click="navigateTo('/aug-new-page')">
        <div class="card-icon">💬</div>
        <h3>AugNewPage</h3>
        <p>基于新截图设计的现代化聊天界面</p>
        <div class="card-features">
          <span class="feature">现代UI</span>
          <span class="feature">客户信息</span>
          <span class="feature">实时聊天</span>
        </div>
      </div>

      <div class="menu-card" @click="navigateTo('/kiro-first-page')">
        <div class="card-icon">🎯</div>
        <h3>KiroFirstPage</h3>
        <p>原始的简单聊天界面页面</p>
        <div class="card-features">
          <span class="feature">经典布局</span>
          <span class="feature">基础功能</span>
          <span class="feature">简洁设计</span>
        </div>
      </div>
    </div>

    <div class="menu-footer">
      <p>© 2025 聊天系统 - 由 Kiro 构建</p>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const navigateTo = (path) => {
  router.push(path)
}
</script>

<style scoped>
.menu-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.menu-header {
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

.menu-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.menu-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 800px;
  width: 100%;
}

.menu-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: 2px solid transparent;
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-color: #667eea;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.menu-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.menu-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-features {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.feature {
  background: #f0f0f0;
  color: #666;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.menu-footer {
  margin-top: 40px;
  text-align: center;
  color: white;
  opacity: 0.8;
}

.menu-footer p {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .menu-header h1 {
    font-size: 2rem;
  }
  
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .menu-card {
    padding: 20px;
  }
}
</style>